import os

def _dir(directory):
    for root, dirs, files in os.walk(directory):
        for file in files:
            yield os.path.join(root, file)

#路径
_path = "D:\\tmp\\until\\dist\\test"

# 遍历目录并打印所有文件的路径
for file_path in _dir(_path):
    print(file_path)